<?php 
/* SVN FILE: $Id$ */
/* Event Test cases generated on: 2010-02-13 15:11:20 : 1266066680*/
App::import('Model', 'Event');

class EventTestCase extends CakeTestCase
{
	var $Event = null;
//	var $fixtures = array('app.event');

	function startTest()
	{
		$this->Event =& ClassRegistry::init('Event');
	}

	function testEventInstance()
	{
		$this->assertTrue(is_a($this->Event, 'Event'));
	}

	function testEventValidation()
	{
		$data = array();
		$data['title'] = 'sample title';
		$data['start_date'] = '2010-03-20 20:10:00';
		$data['end_date']   = '2010-03-21 20:10:00';
		$data['creator_id'] = 1;
		$data['attendance_manager_id'] = 1;
		$data['event_type_id'] = 1;
		$data['season_id'] = 1;
		$data['is_closed'] = 1;
		$data['is_deleted'] = 1;
		$this->data = $data;
		$this->Event->create();
		$this->assertTrue($this->Event->save($this->data));
	}

}
?>